home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / MAKETBOX.DMO < prev    next >
Text File  |  1996-07-04  |  3KB  |  53 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   MAKETBOX.DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. $INCLUDE "DAS-NB01.INC"
  19. $INCLUDE "DAS-NBT1.INC"
  20.  
  21. COLOR 7, 0, 0
  22. CLS
  23. ? "┌────────────────────────────────────────────────────────────────────────────
  24. ? "│  MakeTBox ( Row?,Col?,Rows?,Cols?,Brdr%,Battr?,Shdo?,Sattr?,Tpos?,Title$ )
  25. ? "│ fMakeTBox$( Row?,Col?,Rows?,Cols?,Brdr%,Battr?,Shdo?,Sattr?,Tpos?,Title$ )
  26. ? "├────────────────────────────────────────────────────────────────────────────
  27. ? "│ The difference between the routine and the function is that the function
  28. ? "│ computes the screen area to be saved, calls fTBoxREAD$, returns a string
  29. ? "│ holding the data below the new box, then calls MakeTBox to do the actual
  30. ? "│ work. MakeTBox is a simple call to TBoxDRAW and DrawTShadow but adds the
  31. ? "│ ability to print a box 'title' in any one of 8 positions. The shadow and
  32. ? "│ title are optional features.
  33. ? "└────────────────────────────────────────────────────────────────────────────
  34.  
  35.                                                          '┌──────────────────
  36. TBoxFILL 13, 1, 13, 80, 176, 112                         '│screen full of ░'s
  37. FOR Brdr% = 1 TO 11                                      '│11 different brdrs
  38.   T$ = USING$( "BORDER _###", Brdr% )                  '│the TITLE
  39.   FOR Tpos? = 1 TO 8 STEP 4                              '│ 8 title positions
  40.     MakeTBox 15, 1,8,18,Brdr%,31,1,8,Tpos?,T$            '│ do it!
  41.     MakeTBox 15,21,8,18,Brdr%,31,1,8,Tpos?+1,T$          '│ do it!
  42.     MakeTBox 15,41,8,18,Brdr%,31,1,8,Tpos?+2,T$          '│ do it!
  43.     MakeTBox 15,61,8,18,Brdr%,31,1,8,Tpos?+3,T$          '│ do it!
  44.     IF fAnyKey% = 27 THEN EXIT, EXIT                     '│ <THUMP A BUTTON>
  45.   NEXT                                                   '│
  46. NEXT                                                     '│
  47.                                                          '│
  48. TBoxFILL 13, 1, 13, 80, 32, 112                          '│ ALL DONE
  49. T$ = "qThank you!"                                      '│ but, how about a
  50. SaveScrn$ = fMakeTBox$(23,66,3,14,1,127,61,120,4,T$)     '│ quick 1 line
  51. fAnyKey                                                  '│ message box?
  52. TBoxWRITE SaveScrn$                                      '│ restore the scrn
  53.                                                          '└──────────────────